(function() {
  var __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  define(['lib/dao', 'lib/dao_factory'], function(Dao, DaoFactory) {
    'use strict';
    var AccessDao, _ref;
    AccessDao = (function(_super) {
      __extends(AccessDao, _super);

      function AccessDao() {
        _ref = AccessDao.__super__.constructor.apply(this, arguments);
        return _ref;
      }

      AccessDao.prototype.login = function(username, password) {
        return this.fetchRaw('POST', 'login', null, {
          username: username,
          password: password
        });
      };

      AccessDao.prototype.logout = function() {
        return this.fetchRaw('POST', 'logout');
      };

      return AccessDao;

    })(Dao);
    DaoFactory.register('access_dao', AccessDao);
    return AccessDao;
  });

}).call(this);
